package com.he.simplefactorymodel;

import com.he.simplefactorymodel.factory.SimpleFactory;
import com.he.simplefactorymodel.product.concreteproduct.AddOpt;
import com.he.simplefactorymodel.product.Operator;

import java.math.BigDecimal;

public class client {
    public static void main(String[] args) {
        Operator<BigDecimal> operator = SimpleFactory.getOpt(AddOpt.class);
        BigDecimal result = operator.getResult(new BigDecimal("10.0"), new BigDecimal("9.9"));
        System.out.println(result);
    }
}
